home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / python / runtime.d / pycentral.rtinstall next >
Text File  |  2009-10-11  |  284b  |  14 lines

  1. #! /bin/sh -e
  2.  
  3. cmd="$1"
  4. runtime="$2"
  5. oldversion="$3"
  6. newverison="$4"
  7.  
  8. if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1; then
  9.     pycentral rtinstall --ignore-errors=yes $runtime
  10. else
  11.     echo >&2 "python or pycentral not found in $(basename $0) hook."
  12.     exit 1
  13. fi
  14.